//
//  YXHTTPRequst.h
//  JS_Block&Networking
//
//  Created by 向乾操 on 16/2/29.
//  Copyright © 2016年 向乾操. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, YXRequstMethodType) {
    YXRequstMethodTypeGET   = 0,
    YXRequstMethodTypePOST  = 1
};

@interface YXHTTPRequst : NSObject

+ (YXHTTPRequst *)shareInstance;

- (void)networking:(NSString *)urlString
        parameters:(NSDictionary *)parame
            method:(YXRequstMethodType)TYPE
           success:(void (^) (NSDictionary *))success_
          failsure:(void (^) (NSError *))failsure_;

@end
